// 初始化状态以及如何变更状态
export const homeReducer = (state = { count: 1 }, action) => {
	switch (action.type) {
	case 'SET_COUNT':
		return {
			...state,
			count: state.count + action.count
		}
	default:
		return state
	}
}